package cn.lili.controller.feign.message;

import cn.lili.modules.message.client.NoticeMessageClient;
import cn.lili.modules.message.entity.dto.NoticeMessageDTO;
import cn.lili.modules.message.service.NoticeMessageService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author paulG
 * @since 2022/1/12
 **/
@RestController
@RequiredArgsConstructor
public class NoticeMessageFeignController implements NoticeMessageClient {

    private final NoticeMessageService noticeMessageService;

    /**
     * 根据模板编码获取消息模板
     *
     * @param noticeMessageDTO 站内信消息
     */
    @Override
    public void noticeMessage(NoticeMessageDTO noticeMessageDTO) {
        noticeMessageService.noticeMessage(noticeMessageDTO);
    }
}
